package the_second_chapter;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Input {

	public static void main(String[] args) {
		String s = "";
		System.out.println("请输入一个字符串：");
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			s = br.readLine();
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.out.println("键入的字符串为：" + s);
	}

	// public static void main(String[] args) {
	//// int i = 0;
	// char c = ' ';
	// System.out.println("请输入一个字符：");
	// try {
	//// i = System.in.read();
	// c = (char) System.in.read();
	// } catch (IOException e) {
	// e.printStackTrace();
	// }
	//// System.out.println("该字符的ASCII码值为: " + i);
	// System.out.println("键入的字符为: " + c);
	// }
}
